package zpf.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import zpf.annotation.ExcludeFromComponentScan;

/**
 * @ClassName: ConfigurationInside2ScanPackage
 * @Description: TODO
 * @Autor: ZPF
 * @Date: 2021/1/13 15:35
 **/
//@Configuration
//@ExcludeFromComponentScan
public class ConfigurationInside2ScanPackage {

    @Bean
    public IRule ribbonRule(){
        return new RandomRule();
        //return new RoundRobinRule();
    }
}
